#!/bin/bash

INSTALL_DIR="/home/acautoai-master"


if [ ! -d "$INSTALL_DIR" ]; then
  sudo mkdir -p "$INSTALL_DIR"
fi


sudo cp -r ./* "$INSTALL_DIR"


sudo chmod 755 "$INSTALL_DIR/acautoai-master"

if ! grep -qFx "export PATH=\$PATH:$INSTALL_DIR/" ~/.bashrc; then echo "export PATH=\$PATH:$INSTALL_DIR/" >> ~/.bashrc
fi
source ~/.bashrc

echo "Install success!,run 'acautoai-master'in root mode"
